package laba7.taskA;

/**
 * Demonstration of the thread startup.
 * @author yakimovich
 */
public class NamePrinterDemo {

    /**
     * Demonstration of the thread start
     * @param args
     */
    public static void main(String[] args) {
        NamePrinterRunnableImpl rannable =
                new NamePrinterRunnableImpl("Runnable", System.out, 300, 10);

        Thread t1 = new Thread(rannable);
        Thread t2 = new NamePrinterThreadExt("Thread", System.err, 200, 12);

        t1.start();
        t2.start();
    }
}
